﻿package nl.haemers.galleries.events 
{
	import flash.events.Event;
	import nl.haemers.galleries.galleryitem.BaseItem;
	
	/**
	 * ...
	 * @author Jonathan Haemers
	 * @company $(DefaultCompany)
	 */
	public class GalleryEvent extends Event 
	{
		public static const CLICKED						:String = "clicked";
		
		//private var _item								:BaseItem;
		private var _id									:int;
		
		public function GalleryEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, id:int=0) 
		{ 
			super(type, bubbles, cancelable);
			
			_id = id;
			//_item = item;
		} 
		
		public override function clone():Event 
		{ 
			return new GalleryEvent(type, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("GalleryEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
		public function get id() : int
		{ 
			return _id;
		}
		/*
		public function get item() : BaseItem
		{ 
			return _item; 
		}
		*/
	}
	
}